package com.xyh.transaction.service;

import com.github.pagehelper.PageInfo;
import com.xyh.transaction.entity.dto.order.CreateOrderDto;
import com.xyh.transaction.entity.dto.order.SearchOrderDto;
import com.xyh.transaction.entity.dto.user.ArrDto;
import com.xyh.transaction.entity.vo.*;
import org.springframework.http.ResponseEntity;

import java.util.List;

public interface OrderService {
    OrderCheckoutInfo getCheckoutInfo(Integer orderId);

    Integer createOrder(CreateOrderDto orderDto);

    PayInfo getPayInfo(Integer orderId);

    PageInfo<OrderVo> getUserOrderList(SearchOrderDto orderDto);

    void updateStatus(SearchOrderDto orderDto);

    OrderVo getOrderInfo(String id);

    PageInfo<OrderVo> getAminOrderList(SearchOrderDto orderDto);

    List<OrderStatusVo> getOrderStatusList();

    List<LabelValue> getPayTypeList();

    List<LabelValue> getDeliveryTypeList();

    void deliveryOrder(ArrDto ids);

    ResponseEntity<byte[]> exportOrderList(SearchOrderDto orderDto);
}
